import imagePic from '../../imgs/image.png'
export default {
    tab: 'basic',
    type: 'static',
    name: 'Image',
    title: '图片组件',
    pic: imagePic,
    width: 375,
    height: 190,
    data: {
        props: {
            src: {
                title: '路径',
                valueType: 'input',
                initialValue: 'https://ossweb-img.qq.com/images/lol/web201310/skin/big10001.jpg',
            },
            objectFit: {
                title: '宽高比',
                valueType: 'radioButton',
                initialValue: 'fill',
                valueEnum: {
                    fill: { text: 'fill' },
                    contain: { text: 'contain' },
                    cover: { text: 'cover' },
                    none: { text: 'none' },
                },
                // 上下布局， 默认为左右布局
                formItemProps: {
                    labelCol: { span: 24 },
                    wrapperCol: { span: 24} 
                }
            },
            borderRadius: {
                title: '圆角',
                valueType: 'digit',
                initialValue: 0,
            },
            opacity: {
                title: '不透明度',
                valueType: 'digit',
                initialValue: 100,
            },
            // height: {
            //     title: '高',
            //     valueType: 'digit',
            //     initialValue: 240,
            // },
        }
    },
}